package com.xyht.sca_s.student_manage_system.modules.news.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

import java.io.Serializable;
import java.util.Date;
@Data
public class SmsNewsUpdateDto implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "新闻主题	")
    @NonNull
    private String newsTopic;

    @ApiModelProperty(value = "事件类型:0:重要;1:普通.")
    @NonNull
    private String eventType;

    @ApiModelProperty(value = "新闻类型:0:学校要闻;1:学院动态;2:部门动态;3:媒体理工;4:学术动态.")
    @NonNull
    private String newsType;

    @ApiModelProperty(value = "新闻内容")
    @NonNull
    private String newsContent;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "封面图")
    private String cover;
}
